package com.qf.service.impl;

import java.util.List;

import com.qf.dao.UserDao;
import com.qf.domain.User;
import com.qf.service.UserService;

public class UserServiceImpl implements UserService{
    private UserDao dao;
    

	public UserDao getDao() {
		return dao;
	}


	public void setDao(UserDao dao) {
		this.dao = dao;
	}


	public List<User> login() {
		return dao.find();
	}


	public void register(User u) {
          dao.addUser(u);	
	}
    
}
